package com.scenic.rd_android.threerd;


import android.support.test.runner.AndroidJUnit4;
import android.test.suitebuilder.annotation.LargeTest;

import com.nova.scenic.projectlibs.util.debug.MyLog;
import com.scenic.rd_android.threerd.chart.customchart.TimerControl;

import org.junit.Test;
import org.junit.runner.RunWith;

/**
 * Created by scenic on 16/9/14.
 */
@RunWith(AndroidJUnit4.class)
@LargeTest
public class TestChars  {

    MyLog myLog = MyLog.buildForAndroid(TestChars.class);
    @Test
    public void testTimeRecycle() throws InterruptedException {
        myLog.setPattern(MyLog.PATTERN_ALL);
        TimerControl chartManager = new TimerControl();
        chartManager
                .bounce(2)
                .setOnTimerRecycleListener(new TimerControl.OnTimerRecycleListener() {
                    @Override
                    public void onTimeRecycle() {
                        myLog.info("time recycle");
                    }
                });

        chartManager.startTimer();

        myLog.info("finish");

        Thread.sleep(10000);
    }

}
